<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:1px;">
  <t:datagrid name="checkPurchaseList" title="待审批采购申请" actionUrl="purchaseCheckController.do?datagrid" idField="id" fit="true">
   <t:dgCol title="编号" field="id" hidden="false"></t:dgCol>
   <t:dgCol title="状态" field="Fstatus" hidden="false"></t:dgCol>
   <t:dgCol title="finterid" field="FInterID" hidden="false"></t:dgCol>
   <t:dgCol title="申请编号" field="FbillNo" ></t:dgCol>
   <t:dgCol title="申请人" field="FRequesterIDName" ></t:dgCol>
    <t:dgCol title="制单人" field="FBillerID_DSPName" hidden="false"></t:dgCol>
   <t:dgCol title="申请日期" field="Fdate" formatter="yyyy-MM-dd"></t:dgCol>
   <t:dgCol title="申请部门" field="FDeptIDName" ></t:dgCol>
   <t:dgCol title="审核人" field="fmultichecklevel1" hidden="false"></t:dgCol>
   <t:dgCol title="审核日期" field="fmulticheckdate1" hidden="false"></t:dgCol>
   <t:dgCol title="备注" field="Fnote" ></t:dgCol>
   <t:dgToolBar title="审批" icon="icon-ok" url="purchaseCheckController.do?check" funname="pp_check"></t:dgToolBar>
   <t:dgToolBar title="驳回" icon="icon-redo" url="purchaseCheckController.do?uncheck" funname="pp_uncheck"></t:dgToolBar>
   <t:dgToolBar title="查看" icon="icon-search" url="purchaseCheckController.do?addorupdate" funname="pcheck_detail"></t:dgToolBar>
  </t:datagrid>
  </div>
</div>
 
 <script type="text/javascript">
 //查看
 function pcheck_detail(title,url,id,width,height) {

	var rowsData = $('#'+id).datagrid('getSelections');
	
	if (!rowsData || rowsData.length == 0) {
		tip('请选择查看项目');
		return;
	}
	if (rowsData.length > 1) {
		tip('请选择一条记录再查看');
		return;
	}
    url += '&load=detail&FInterID='+rowsData[0].FInterID;
	createdetailwindow(title,url,'100%','100%');
}



</script>